{% extends 'rango/base.html'%}
{% block body_block%}
<div class="hero-unit">
    <h1>Register with Rango</h1>
    <br/>
    <div class="container">
        {% if registered %}
        <p>Thank you for registering.</p>
        <p><a href="/rango/login/">Login</a>when you are ready to rango.</p>
        {% else %}
            <form class="form-signin span8" id="user_form" method="post" action="/rango/register/" enctype="multipart/form-data">
                {% csrf_token %}
                <h2 class="form-signin-heading">Sign up Here</h2>
                {% for field in user_form.visible_fields %}
                    {{ field.errors }}
                    {{ field.help_text }}<br />
                    {{ field }}<br />
                {% endfor %}
                {% for field in profile_form.visible_fields %}
                    {{ field.errors }}
                    {{ field.help_text }}<br />
                    {{ field }}<br />
                {% endfor %}
                <br/>
                <input class="btn btn-primary" type="submit" name="submit" value="Register" />
            </form>
        {% endif %}
    </div>
</div>
{% endblock %}